<?php  
        session_start();
        if ($_SESSION['flag'] != 2) {
                echo "<script language='javascript'>";
                echo "alert('You have no permission to read this page!');";
                echo "history.back();";
                echo "</script>";
                header("location:../login.php");
        }
        else { 
                echo '
<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width; text/html; charset=utf-8" http-equiv="Content-Type">
<title>感謝您的填寫</title>
<link href="../mobile.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="banner">
        餐廳資訊填寫 
        <div id="home">
                <a href="select.php">
        <img alt="" class="auto-style1" height="40" src="../pic/home.png" width="40"></a>
        </div>

        <div id="logout">
                <a href="../logout.php">
                <img alt="" class="auto-style1" height="41" src="../pic/logout.png" width="41"></a>
        </div>
</div>

<div id="content">
	<br />感謝您填寫此資料<br /><br />
        請點選<a href="select.php">此連結</a>查看資訊<br /><br />
</div>


</body>

</html>';
}
?>
